package com.yaj.myfactorysupport.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author wei
 * @since 2021-05-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("T_LOT_TRACE_TEMP")
@ApiModel(value="TLotTraceTemp对象", description="")
public class TLotTraceTemp implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ロットトレース情報UID")
    @TableId(value = "T_LOT_TRACE_TEMP_UID", type = IdType.AUTO)
    private BigDecimal tLotTraceTempUid;

    @ApiModelProperty(value = "親品番")
    @TableField("ITEM_ID")
    private String itemId;

    @ApiModelProperty(value = "親品名")
    @TableField("ITEM_NAME")
    private String itemName;

    @ApiModelProperty(value = "親ロットID")
    @TableField("ITEM_LOT_ID")
    private String itemLotId;

    @ApiModelProperty(value = "親IDタイプ")
    @TableField("ITEM_ID_TYPE")
    private String itemIdType;

    @ApiModelProperty(value = "部品品番")
    @TableField("PART_ID")
    private String partId;

    @ApiModelProperty(value = "部品品名")
    @TableField("PART_NAME")
    private String partName;

    @ApiModelProperty(value = "部品ロケーション")
    @TableField("PART_LOCATION")
    private String partLocation;

    @ApiModelProperty(value = "部品ロットID")
    @TableField("PART_LOT_ID")
    private String partLotId;

    @ApiModelProperty(value = "製造ロットNO")
    @TableField("MFG_LOT_NO")
    private String mfgLotNo;

    @ApiModelProperty(value = "部品改正符号")
    @TableField("REV_SYM")
    private String revSym;

    @ApiModelProperty(value = "IDタイプ")
    @TableField("ID_TYPE")
    private String idType;

    @ApiModelProperty(value = "数量")
    @TableField("QTY")
    private BigDecimal qty;

    @ApiModelProperty(value = "使用順序")
    @TableField("SEQ_NO")
    private BigDecimal seqNo;

    @ApiModelProperty(value = "旧部品ロットID")
    @TableField("OLD_PART_LOT_ID")
    private String oldPartLotId;

    @ApiModelProperty(value = "上位ロットID")
    @TableField("TOP_LOT_ID")
    private String topLotId;

    @ApiModelProperty(value = "最上位フラグ")
    @TableField("TOPMOST_FLAG")
    private String topmostFlag;

    @ApiModelProperty(value = "オーダ情報UID")
    @TableField("T_ORDER_UID")
    private BigDecimal tOrderUid;

    @ApiModelProperty(value = "オーダNO")
    @TableField("ORDER_NO")
    private String orderNo;

    @ApiModelProperty(value = "枝番")
    @TableField("BR_NO")
    private Integer brNo;

    @ApiModelProperty(value = "工程順序NO")
    @TableField("MF_ORD_NO")
    private BigDecimal mfOrdNo;

    @ApiModelProperty(value = "ラインID")
    @TableField("LINE_ID")
    private String lineId;

    @ApiModelProperty(value = "ライン名")
    @TableField("LINE_NAME")
    private String lineName;

    @ApiModelProperty(value = "サブ工程ID")
    @TableField("SUBMF_ID")
    private String submfId;

    @ApiModelProperty(value = "サブ工程名")
    @TableField("SUBMF_NAME")
    private String submfName;

    @ApiModelProperty(value = "使用日時")
    @TableField("USED_DTIME")
    private Date usedDtime;

    @ApiModelProperty(value = "コメント")
    @TableField("NOTES")
    private String notes;

    @ApiModelProperty(value = "有効フラグ")
    @TableField("ACTIVE_FLAG")
    private String activeFlag;

    @ApiModelProperty(value = "作成者ID")
    @TableField("CREATED_BY")
    private String createdBy;

    @ApiModelProperty(value = "作成日時")
    @TableField(fill = FieldFill.INSERT)
    private Date createTimestamp;

    @ApiModelProperty(value = "更新者ID")
    @TableField("UPDATED_BY")
    private String updatedBy;

    @ApiModelProperty(value = "更新日時")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTimestamp;


}
